{% extends "base.html" %}
{% block title %}
  Wager Wagon - Latest Polls
{% endblock %}
{% block pagetitle %}
  5 Latest Public Polls
{% endblock %}
{% block main %}
  {% for poll in polls %}
    <p> <b>{{ poll.owner.nickname }}</b> posted:</p>
    <form action="/vote" method="post">
      <fieldset>
        <legend>{{ poll.question|escape }}</legend>
        {% for choice in poll.choice_set %}
          <input type="radio" name="choice" value="{{ choice.key }}"/>{{ choice.name|escape }}<br />
        {% endfor %}
        <input type="submit" value="Vote!" />
      </fieldset>
    </form>
  {% endfor %}
{% endblock %}
